<?php
class Core_Model_Xssprotection implements Core_Data_Mainable {
	
	public $cross_site_scripting;
	
	public function __construct(){
		$this->cross_site_scripting = new Core_Data_Xssprotection;
	}
	
	public function main(array $variables = null){
		foreach($variables as $key => $value){
			if(is_array($value)){
				$variables[$key] = $this->main($value);
			}
			else {
				$values['value'] = $value;
				$variables[$key] = $this->cross_site_scripting->main($values);
			}
		}
                return $variables;
	}
	
}